package com.pactera.asmp.server.pojo;

import com.pactera.asmp.server.common.utils.FastJsonUtil;

import java.util.List;

/**
 * @ProjectName: asmp-server
 * @Package com.pactera.asmp.server.pojo
 * @ClassName: WSMessage
 * @Description: wsmessage
 * @Date 2020/07/03 15:32
 * @Author lvzhiqiang
 * @Version 1.0
 */
public class WSMessage<T> {

    private String touuid;
    private String fromuuid;
    private String displayId;
    private String msgcode;
    private String describe;
    private String socketKey;
    private Integer projectId;
    private List<T> list;

    public String getTouuid() {
        return touuid;
    }

    public void setTouuid(String touuid) {
        this.touuid = touuid;
    }

    public String getFromuuid() {
        return fromuuid;
    }

    public void setFromuuid(String fromuuid) {
        this.fromuuid = fromuuid;
    }

    public String getDisplayId() {
        return displayId;
    }

    public void setDisplayId(String displayId) {
        this.displayId = displayId;
    }

    public String getMsgcode() {
        return msgcode;
    }

    public void setMsgcode(String msgcode) {
        this.msgcode = msgcode;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public String getSocketKey() {
        return socketKey;
    }

    public void setSocketKey(String socketKey) {
        this.socketKey = socketKey;
    }

    @Override
    public String toString() {
        return FastJsonUtil.BeanToJson(this);
    }
}
